package com.sixth.service;

import com.sixth.entity.Menu;
import com.sixth.util.CommonResult;
import com.sixth.util.TableLayUi;

public interface MenuService {

    CommonResult findByUserRid();

    //查询全部菜单
    CommonResult findAlling();

    //树形菜单
    CommonResult findAllMenu();

    //菜单表查询
    TableLayUi findAll(int page, int limit, String title);

    //添加菜单
    CommonResult addMenu(Menu menu);

    //根据pid查询菜单的数量
    CommonResult queryMenuByPid(Integer id);

    //修改菜单
    CommonResult updateMenu(Menu menu);

    //修改权限
    CommonResult updatePermission(Integer roleid, String[] mids);


    CommonResult findRoleMenuId(Integer roleid);
}
